//
//  QWLoggingMacros.h
//  WJLoggingAPI-example
//
//  Created by 吴云海 on 15-12-26.
//  Copyright (c) 2015年 WJ. All rights reserved.
//


/**
 * 日志入口
 * error > warn > info > debug > verbose
 */

#import "IQWLogger.h"
#import "QWLoggerFactory.h"

#define QWLogError(frmt, ...) \
        [[QWLoggerFactory getLogger] error:[NSString stringWithFormat:@"%s line:%d",__func__,__LINE__] format:frmt, ##__VA_ARGS__]

#define QWLogWarn(frmt, ...) \
        [[QWLoggerFactory getLogger] warn:[NSString stringWithFormat:@"%s line:%d",__func__,__LINE__] format:frmt, ##__VA_ARGS__]

#define QWLogInfo(frmt, ...) \
        [[QWLoggerFactory getLogger] info:[NSString stringWithFormat:@"%s line:%d",__func__,__LINE__] format:frmt, ##__VA_ARGS__]

#define QWLogDebug(frmt, ...) \
        [[QWLoggerFactory getLogger] debug:[NSString stringWithFormat:@"%s line:%d",__func__,__LINE__] format:frmt, ##__VA_ARGS__]

#define QWLogVerbose(frmt, ...) \
        [[QWLoggerFactory getLogger] verbose:[NSString stringWithFormat:@"%s line:%d",__func__,__LINE__] format:frmt, ##__VA_ARGS__]